package breeze.pixel.weather.service.app_widget.widgets;

import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.os.Build;

import breeze.pixel.weather.service.app_widget.AppWidgetUpdateService;
import brz.breeze.tool_utils.Blog;

public class MAppWidget_4 extends AppWidgetProvider {
    @Override
    public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
        super.onUpdate(context, appWidgetManager, appWidgetIds);
        init(context);
    }

    @Override
    public void onEnabled(Context context) {
        super.onEnabled(context);
        init(context);
    }

    @Override
    public void onDisabled(Context context) {
        super.onDisabled(context);
        init(context);
    }

    private void init(Context context){
        AppWidgetUpdateService.startService(context);
    }

    @Override
    public void onDeleted(Context context, int[] appWidgetIds) {
        super.onDeleted(context, appWidgetIds);
    }
}
